package com.itheima.dao;

import com.itheima.pojo.Exercise;
import com.itheima.pojo.Food;
import com.itheima.pojo.Intervention;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface HealthInterventionDao {
    List<Exercise> querySport();

    List<Food> queryFood();

    String verifyOrderStatus(Integer id);

    List<Intervention> verifyIntervention(Integer id);

    Integer addIntervention(Intervention intervention);

    void addInterventionAndExercise(@RequestParam Integer interventionId,@RequestParam Integer sportId);

    void addInterventionAndFood(@RequestParam  Integer interventionId,@RequestParam  Integer foodId);

    List<String> queryAdvice(Integer id);

    List<Integer> queryFoodByIntervention(Integer interventionId);

    List<Integer> queryExerciseByIntervention(Integer interventionId);

    Integer queryInterventionId(Integer id);

    void deleteIntervention(Integer orderId);

    void deleteInterventionAndExercise(Integer id);

    void deleteInterventionAndFood(Integer id);
}

